var fs = require("fs");
var data = '菜鸟教程官网地址：www.runoob.com';
var model = [0.46875,
  0.242188,
  0.757812,
  0.5,
  0.09375,
  0.6875,
  0.5625,
  0.242188,
  0.671875,
  -0.5,
  0.09375,
  0.6875,
  -0.46875,
  0.242188,
  0.757812,
  -0.5625,
  0.242188,
  0.671875,
  0.546875,
  0.0546875,
  0.578125,
  0.625,
  0.242188,
  0.5625,
  -0.546875,
  0.0546875,
  0.578125,
  -0.625,
  0.242188,
  0.5625,
  0.351562,
  -0.0234375,
  0.617188,
  -0.351562,
  -0.0234375,
  0.617188,
  0.4375,
  0.164063,
  0.765625,
  0.351562,
  0.03125,
  0.71875,
  -0.351562,
  0.03125,
  0.71875,
  -0.4375,
  0.164063,
  0.765625,
  0.351562,
  0.132813,
  0.78125,
  0.203125,
  0.09375,
  0.742188,
  -0.203125,
  0.09375,
  0.742188,
  -0.351562,
  0.132813,
  0.78125,
  0.15625,
  0.0546875,
  0.648438,
  -0.15625,
  0.0546875,
  0.648438,
  0.140625,
  0.242188,
  0.742188,
  -0.140625,
  0.242188,
  0.742188,
  -0.078125,
  0.242188,
  0.65625,
  0.242188,
  0.242188,
  0.796875,
  0.273438,
  0.164063,
  0.796875,
  -0.242188,
  0.242188,
  0.796875,
  0.203125,
  0.390625,
  0.742188,
  -0.203125,
  0.390625,
  0.742188,
  0.078125,
  0.242188,
  0.65625,
  -0.15625,
  0.4375,
  0.648438,
  0.351562,
  0.453125,
  0.71875,
  0.15625,
  0.4375,
  0.648438,
  -0.351562,
  0.453125,
  0.71875,
  -0.351562,
  0.515625,
  0.617188,
  0.351562,
  0.359375,
  0.78125,
  0.273438,
  0.328125,
  0.796875,
  -0.351562,
  0.359375,
  0.78125,
  0.4375,
  0.328125,
  0.765625,
  -0.4375,
  0.328125,
  0.765625,
  -0.5,
  0.390625,
  0.6875,
  0.5,
  0.390625,
  0.6875,
  0.351562,
  0.515625,
  0.617188,
  -0.546875,
  0.4375,
  0.578125,
  0.546875,
  0.4375,
  0.578125,
  0.476562,
  0.242188,
  0.773438,
  -0.476562,
  0.242188,
  0.773438,
  -0.445312,
  0.335938,
  0.78125,
  0.445312,
  0.335938,
  0.78125,
  -0.351562,
  0.375,
  0.804688,
  0.351562,
  0.375,
  0.804688,
  -0.273438,
  0.328125,
  0.796875,
  -0.265625,
  0.335938,
  0.820312,
  0.265625,
  0.335938,
  0.820312,
  -0.226562,
  0.242188,
  0.820312,
  0.265625,
  0.15625,
  0.820312,
  0.226562,
  0.242188,
  0.820312,
  -0.265625,
  0.15625,
  0.820312,
  0.351562,
  0.117188,
  0.804688,
  -0.351562,
  0.117188,
  0.804688,
  -0.273438,
  0.164063,
  0.796875,
  0.445312,
  0.15625,
  0.78125,
  -0.445312,
  0.15625,
  0.78125,
  0.351562,
  0.242188,
  0.828125,
  -0.351562,
  0.242188,
  0.828125,
  0.164062,
  -0.929688,
  0.632813,
  0,
  -0.984375,
  0.578125,
  0.179688,
  -0.96875,
  0.554688,
  -0.164062,
  -0.929688,
  0.632813,
  0,
  -0.945312,
  0.640625,
  0.234375,
  -0.914062,
  0.632813,
  0.328125,
  -0.945312,
  0.523438,
  -0.234375,
  -0.914062,
  0.632813,
  -0.179688,
  -0.96875,
  0.554688,
  0.367188,
  -0.890625,
  0.53125,
  -0.367188,
  -0.890625,
  0.53125,
  -0.328125,
  -0.945312,
  0.523438,
  0.351562,
  -0.695312,
  0.570313,
  0.265625,
  -0.820312,
  0.664063,
  -0.265625,
  -0.820312,
  0.664063,
  -0.351562,
  -0.695312,
  0.570313,
  0.3125,
  -0.4375,
  0.570312,
  0.25,
  -0.703125,
  0.6875,
  -0.25,
  -0.703125,
  0.6875,
  -0.3125,
  -0.4375,
  0.570312,
  0.203125,
  -0.1875,
  0.5625,
  0.398438,
  -0.046875,
  0.671875,
  0.125,
  -0.101562,
  0.8125,
  -0.398438,
  -0.046875,
  0.671875,
  -0.203125,
  -0.1875,
  0.5625,
  -0.125,
  -0.101562,
  0.8125,
  0.632812,
  -0.0390625,
  0.539062,
  0.4375,
  -0.140625,
  0.53125,
  -0.632812,
  -0.0390625,
  0.539062,
  -0.617188,
  0.0546875,
  0.625,
  0.726562,
  0.203125,
  0.601562,
  0.617188,
  0.0546875,
  0.625,
  -0.726562,
  0.203125,
  0.601562,
  0.859375,
  0.429688,
  0.59375,
  0.828125,
  0.148438,
  0.445312,
  -0.859375,
  0.429688,
  0.59375,
  -0.742188,
  0.375,
  0.65625,
  0.710938,
  0.484375,
  0.625,
  0.742188,
  0.375,
  0.65625,
  -0.710938,
  0.484375,
  0.625,
  -0.6875,
  0.414063,
  0.726562,
  0.492188,
  0.601563,
  0.6875,
  0.6875,
  0.414063,
  0.726562,
  -0.492188,
  0.601563,
  0.6875,
  -0.4375,
  0.546875,
  0.796875,
  0.3125,
  0.640625,
  0.835938,
  0.4375,
  0.546875,
  0.796875,
  -0.3125,
  0.640625,
  0.835938,
  0.15625,
  0.71875,
  0.757812,
  0.320312,
  0.757813,
  0.734375,
  -0.15625,
  0.71875,
  0.757812,
  -0.203125,
  0.617188,
  0.851562,
  0.0625,
  0.492188,
  0.75,
  0.203125,
  0.617188,
  0.851562,
  -0.0625,
  0.492188,
  0.75,
  -0.101562,
  0.429688,
  0.84375,
  0,
  0.429688,
  0.742188,
  0.101562,
  0.429688,
  0.84375,
  0,
  0.351563,
  0.820312,
  0.25,
  0.46875,
  0.757812,
  0.164062,
  0.414063,
  0.773438,
  -0.25,
  0.46875,
  0.757812,
  0.328125,
  0.476563,
  0.742188,
  0.429688,
  0.4375,
  0.71875,
  -0.328125,
  0.476563,
  0.742188,
  0.601562,
  0.375,
  0.664062,
  -0.429688,
  0.4375,
  0.71875,
  0.640625,
  0.296875,
  0.648438,
  -0.601562,
  0.375,
  0.664062,
  0.625,
  0.1875,
  0.648438,
  -0.640625,
  0.296875,
  0.648438,
  0.492188,
  0.0625,
  0.671875,
  -0.625,
  0.1875,
  0.648438,
  0.375,
  0.015625,
  0.703125,
  -0.492188,
  0.0625,
  0.671875,
  -0.375,
  0.015625,
  0.703125,
  0,
  0.046875,
  0.726562,
  0.125,
  0.304688,
  0.765625,
  -0.125,
  0.304688,
  0.765625,
  0,
  0.210938,
  0.765625,
  0.132812,
  0.210938,
  0.757812,
  -0.132812,
  0.210938,
  0.757812,
  0.164062,
  0.140625,
  0.75,
  -0.164062,
  0.140625,
  0.75,
  0.0625,
  -0.882812,
  0.695313,
  -0.0625,
  -0.882812,
  0.695313,
  0.117188,
  -0.835937,
  0.710938,
  -0.117188,
  -0.835937,
  0.710938,
  0.109375,
  -0.71875,
  0.734375,
  0.210938,
  -0.445312,
  0.710938,
  0.117188,
  -0.6875,
  0.734375,
  -0.117188,
  -0.6875,
  0.734375,
  -0.210938,
  -0.445312,
  0.710938,
  -0.109375,
  -0.71875,
  0.734375,
  0,
  -0.328125,
  0.742188,
  0.078125,
  -0.445312,
  0.75,
  0.0859375,
  -0.289062,
  0.742188,
  -0.078125,
  -0.445312,
  0.75,
  0,
  -0.445312,
  0.75,
  0,
  -0.679687,
  0.734375,
  0,
  -0.765625,
  0.734375,
  0.125,
  -0.226562,
  0.75,
  0.09375,
  -0.273437,
  0.78125,
  -0.09375,
  -0.273437,
  0.78125,
  -0.125,
  -0.226562,
  0.75,
  -0.0859375,
  -0.289062,
  0.742188,
  0.109375,
  -0.132812,
  0.78125,
  0.101562,
  -0.148437,
  0.742188,
  -0.109375,
  -0.132812,
  0.78125,
  -0.132812,
  -0.226562,
  0.796875,
  0.0390625,
  -0.125,
  0.78125,
  0,
  -0.140625,
  0.742188,
  -0.0390625,
  -0.125,
  0.78125,
  -0.101562,
  -0.148437,
  0.742188,
  0,
  -0.1875,
  0.796875,
  0,
  -0.195312,
  0.75,
  0,
  -0.320312,
  0.78125,
  0,
  -0.289062,
  0.804688,
  -0.078125,
  -0.25,
  0.804688,
  0.046875,
  -0.148437,
  0.8125,
  -0.046875,
  -0.148437,
  0.8125,
  0.09375,
  -0.15625,
  0.8125,
  -0.09375,
  -0.15625,
  0.8125,
  0.132812,
  -0.226562,
  0.796875,
  -0.109375,
  -0.226562,
  0.828125,
  0.078125,
  -0.25,
  0.804688,
  0.109375,
  -0.226562,
  0.828125,
  0,
  -0.203125,
  0.828125,
  0.164062,
  -0.242187,
  0.710938,
  -0.164062,
  -0.242187,
  0.710938,
  -0.179688,
  -0.3125,
  0.710938,
  0.179688,
  -0.3125,
  0.710938,
  0.257812,
  -0.3125,
  0.554688,
  -0.257812,
  -0.3125,
  0.554688,
  0.234375,
  -0.25,
  0.554688,
  -0.234375,
  -0.25,
  0.554688,
  0.09375,
  -0.742187,
  0.726563,
  -0.09375,
  -0.742187,
  0.726563,
  0,
  -0.773437,
  0.71875,
  0.09375,
  -0.820312,
  0.710938,
  -0.09375,
  -0.820312,
  0.710938,
  0.046875,
  -0.867187,
  0.6875,
  -0.046875,
  -0.867187,
  0.6875,
  0,
  -0.890625,
  0.6875,
  0,
  -0.875,
  0.6875,
  0,
  -0.859375,
  0.632813,
  -0.046875,
  -0.851562,
  0.632813,
  0.09375,
  -0.8125,
  0.640625,
  0.046875,
  -0.851562,
  0.632813,
  -0.09375,
  -0.8125,
  0.640625,
  0.09375,
  -0.75,
  0.664063,
  -0.09375,
  -0.75,
  0.664063,
  0,
  -0.78125,
  0.65625,
  0.1875,
  0.15625,
  0.773438,
  0.171875,
  0.21875,
  0.78125,
  -0.1875,
  0.15625,
  0.773438,
  -0.171875,
  0.21875,
  0.78125,
  0.179688,
  0.296875,
  0.78125,
  -0.179688,
  0.296875,
  0.78125,
  0.210938,
  0.375,
  0.78125,
  -0.210938,
  0.375,
  0.78125,
  -0.226562,
  0.109375,
  0.78125,
  0.375,
  0.0625,
  0.742188,
  0.226562,
  0.109375,
  0.78125,
  -0.375,
  0.0625,
  0.742188,
  0.476562,
  0.101563,
  0.71875,
  -0.476562,
  0.101563,
  0.71875,
  0.578125,
  0.195313,
  0.679688,
  -0.578125,
  0.195313,
  0.679688,
  0.585938,
  0.289063,
  0.6875,
  -0.585938,
  0.289063,
  0.6875,
  -0.5625,
  0.351563,
  0.695312,
  0.5625,
  0.351563,
  0.695312,
  -0.421875,
  0.398438,
  0.773438,
  0.335938,
  0.429688,
  0.757812,
  0.421875,
  0.398438,
  0.773438,
  -0.335938,
  0.429688,
  0.757812,
  0.273438,
  0.421875,
  0.773438,
  -0.273438,
  0.421875,
  0.773438,
  0.234375,
  0.359375,
  0.757812,
  0.28125,
  0.398438,
  0.765625,
  -0.234375,
  0.359375,
  0.757812,
  -0.28125,
  0.398438,
  0.765625,
  0.335938,
  0.40625,
  0.75,
  -0.335938,
  0.40625,
  0.75,
  0.414062,
  0.390625,
  0.75,
  -0.414062,
  0.390625,
  0.75,
  0.53125,
  0.335938,
  0.679688,
  -0.53125,
  0.335938,
  0.679688,
  0.554688,
  0.28125,
  0.671875,
  -0.554688,
  0.28125,
  0.671875,
  0.546875,
  0.210938,
  0.671875,
  -0.546875,
  0.210938,
  0.671875,
  0.460938,
  0.117188,
  0.703125,
  -0.460938,
  0.117188,
  0.703125,
  0.375,
  0.0859375,
  0.726562,
  -0.375,
  0.0859375,
  0.726562,
  0.242188,
  0.125,
  0.757812,
  -0.242188,
  0.125,
  0.757812,
  0.203125,
  0.171875,
  0.75,
  -0.203125,
  0.171875,
  0.75,
  0.195312,
  0.296875,
  0.757812,
  -0.195312,
  0.296875,
  0.757812,
  0.195312,
  0.226563,
  0.75,
  -0.195312,
  0.226563,
  0.75,
  0.109375,
  0.460938,
  0.609375,
  0,
  0.40625,
  0.601562,
  -0.109375,
  0.460938,
  0.609375,
  0.195312,
  0.664062,
  0.617188,
  -0.195312,
  0.664062,
  0.617188,
  -0.320312,
  0.757813,
  0.734375,
  -0.335938,
  0.6875,
  0.59375,
  0.335938,
  0.6875,
  0.59375,
  -0.484375,
  0.554688,
  0.554688,
  0.484375,
  0.554688,
  0.554688,
  -0.679688,
  0.453125,
  0.492187,
  0.796875,
  0.40625,
  0.460937,
  0.679688,
  0.453125,
  0.492187,
  -0.796875,
  0.40625,
  0.460937,
  -0.828125,
  0.148438,
  0.445312,
  -0.773438,
  0.164063,
  0.375,
  0.601562,
  1.80992e-08,
  0.414062,
  0.773438,
  0.164063,
  0.375,
  -0.601562,
  1.80992e-08,
  0.414062,
  0.4375,
  -0.09375,
  0.46875,
  -0.4375,
  -0.09375,
  0.46875,
  0,
  -0.484375,
  0.28125,
  0.125,
  -0.539062,
  0.359375,
  0,
  -0.570312,
  0.320313,
  -0.125,
  -0.539062,
  0.359375,
  -0.179688,
  -0.414062,
  0.257813,
  0.140625,
  -0.757812,
  0.367188,
  0,
  -0.804688,
  0.34375,
  -0.140625,
  -0.757812,
  0.367188,
  0.164062,
  -0.945312,
  0.4375,
  0,
  -0.976562,
  0.460938,
  -0.164062,
  -0.945312,
  0.4375,
  0.328125,
  -0.914062,
  0.398438,
  -0.328125,
  -0.914062,
  0.398438,
  0.289062,
  -0.710938,
  0.382813,
  -0.289062,
  -0.710938,
  0.382813,
  0.25,
  -0.5,
  0.390625,
  -0.25,
  -0.5,
  0.390625,
  0.179688,
  -0.414062,
  0.257813,
  0.234375,
  -0.351562,
  0.40625,
  -0.234375,
  -0.351562,
  0.40625,
  0.21875,
  -0.28125,
  0.429688,
  -0.21875,
  -0.28125,
  0.429688,
  -0.210938,
  -0.226562,
  0.46875,
  0.203125,
  -0.171875,
  0.5,
  -0.203125,
  -0.171875,
  0.5,
  -0.4375,
  -0.140625,
  0.53125,
  0.335938,
  0.0546875,
  -0.664062,
  0,
  -0.195313,
  -0.671875,
  0,
  0.0703125,
  -0.828125,
  -0.335938,
  0.0546875,
  -0.664062,
  -0.34375,
  -0.148438,
  -0.539062,
  0.34375,
  -0.148438,
  -0.539062,
  0,
  -0.382813,
  -0.351562,
  -0.296875,
  -0.3125,
  -0.265625,
  0.210938,
  -0.390625,
  0.164063,
  0,
  -0.460938,
  0.1875,
  -0.210938,
  -0.390625,
  0.164063,
  0.734375,
  -0.046875,
  0.0703125,
  0.851562,
  0.234375,
  0.0546875,
  -0.734375,
  -0.046875,
  0.0703125,
  -0.851562,
  0.234375,
  0.0546875,
  0.460938,
  0.4375,
  -0.703125,
  0,
  0.5625,
  -0.851562,
  -0.460938,
  0.4375,
  -0.703125,
  0.453125,
  0.851562,
  0.234375,
  0,
  0.984375,
  -0.078125,
  0,
  0.898438,
  0.289062,
  -0.453125,
  0.851562,
  0.234375,
  -0.453125,
  0.929688,
  -0.0703125,
  0.453125,
  0.867188,
  -0.382813,
  0,
  0.898438,
  -0.546875,
  -0.453125,
  0.867188,
  -0.382813,
  0.726562,
  0.40625,
  0.335937,
  0.632812,
  0.453125,
  0.28125,
  -0.726562,
  0.40625,
  0.335937,
  -0.632812,
  0.453125,
  0.28125,
  0.796875,
  0.5625,
  0.125,
  0.640625,
  0.703125,
  0.0546875,
  -0.796875,
  0.5625,
  0.125,
  -0.640625,
  0.703125,
  0.0546875,
  0.796875,
  0.617188,
  -0.117188,
  0.640625,
  0.75,
  -0.195313,
  -0.796875,
  0.617188,
  -0.117188,
  -0.640625,
  0.75,
  -0.195313,
  0.796875,
  0.539062,
  -0.359375,
  0.640625,
  0.679688,
  -0.445313,
  -0.796875,
  0.539062,
  -0.359375,
  -0.640625,
  0.679688,
  -0.445313,
  0.617188,
  0.328125,
  -0.585938,
  0.773438,
  0.265625,
  -0.4375,
  -0.617188,
  0.328125,
  -0.585938,
  0.453125,
  0.929688,
  -0.0703125,
  0.460938,
  0.523438,
  0.429687,
  -0.460938,
  0.523438,
  0.429687,
  0,
  0.570312,
  0.570312,
  0.859375,
  0.320312,
  -0.046875,
  -0.859375,
  0.320312,
  -0.046875,
  0.820312,
  0.328125,
  -0.203125,
  -0.820312,
  0.328125,
  -0.203125,
  0.296875,
  -0.3125,
  -0.265625,
  0.40625,
  -0.171875,
  0.148438,
  -0.40625,
  -0.171875,
  0.148438,
  -0.429688,
  -0.195313,
  -0.210937,
  0.59375,
  -0.125,
  -0.164062,
  -0.59375,
  -0.125,
  -0.164062,
  0.210938,
  -0.226562,
  0.46875,
  0.640625,
  -0.00781252,
  -0.429688,
  -0.640625,
  -0.00781252,
  -0.429688,
  -0.484375,
  0.0234375,
  -0.546875,
  0.429688,
  -0.195313,
  -0.210937,
  0.484375,
  0.0234375,
  -0.546875,
  0.890625,
  0.40625,
  -0.234375,
  1.01562,
  0.414062,
  -0.289063,
  1.02344,
  0.476562,
  -0.3125,
  -0.890625,
  0.40625,
  -0.234375,
  -1.01562,
  0.414062,
  -0.289063,
  -0.921875,
  0.359375,
  -0.21875,
  1.1875,
  0.4375,
  -0.390625,
  1.23438,
  0.507812,
  -0.421875,
  -1.1875,
  0.4375,
  -0.390625,
  -1.02344,
  0.476562,
  -0.3125,
  -1.23438,
  0.507812,
  -0.421875,
  1.35156,
  0.320312,
  -0.421875,
  -1.35156,
  0.320312,
  -0.421875,
  -1.26562,
  0.289062,
  -0.40625,
  1.26562,
  0.289062,
  -0.40625,
  1.28125,
  0.0546875,
  -0.429688,
  -1.28125,
  0.0546875,
  -0.429688,
  -1.21094,
  0.078125,
  -0.40625,
  1.21094,
  0.078125,
  -0.40625,
  1.03906,
  -0.101563,
  -0.328125,
  -1.03906,
  -0.101563,
  -0.328125,
  -1.03125,
  -0.0390625,
  -0.304688,
  0.828125,
  -0.0703125,
  -0.132812,
  0.773438,
  -0.140625,
  -0.125,
  -0.828125,
  -0.0703125,
  -0.132812,
  -0.773438,
  -0.140625,
  -0.125,
  1.03125,
  -0.0390625,
  -0.304688,
  0.882812,
  -0.0234375,
  -0.210938,
  -0.882812,
  -0.0234375,
  -0.210938,
  1.03906,
  -1.60503e-08,
  -0.367188,
  -1.03906,
  -1.60503e-08,
  -0.367188,
  1.23438,
  0.25,
  -0.445312,
  -1.23438,
  0.25,
  -0.445312,
  -1.1875,
  0.09375,
  -0.445312,
  1.17188,
  0.359375,
  -0.4375,
  -1.17188,
  0.359375,
  -0.4375,
  1.02344,
  0.34375,
  -0.359375,
  -1.02344,
  0.34375,
  -0.359375,
  0.945312,
  0.304688,
  -0.289062,
  -0.945312,
  0.304688,
  -0.289062,
  0.726562,
  -3.07346e-09,
  -0.0703125,
  -0.726562,
  -3.07346e-09,
  -0.0703125,
  -0.71875,
  -0.0234375,
  -0.171875,
  0.71875,
  -0.0234375,
  -0.171875,
  0.921875,
  0.359375,
  -0.21875,
  0.8125,
  -0.015625,
  -0.273438,
  -0.8125,
  -0.015625,
  -0.273438,
  0.71875,
  0.0390625,
  -0.1875,
  0.84375,
  0.015625,
  -0.273438,
  -0.71875,
  0.0390625,
  -0.1875,
  0.757812,
  0.09375,
  -0.273438,
  0.820312,
  0.0859375,
  -0.273438,
  -0.84375,
  0.015625,
  -0.273438,
  -0.757812,
  0.09375,
  -0.273438,
  -0.820312,
  0.0859375,
  -0.273438,
  0.796875,
  0.203125,
  -0.210938,
  0.835938,
  0.171875,
  -0.273438,
  -0.796875,
  0.203125,
  -0.210938,
  0.890625,
  0.242187,
  -0.265625,
  0.84375,
  0.289062,
  -0.210938,
  -0.890625,
  0.242187,
  -0.265625,
  -0.835938,
  0.171875,
  -0.273438,
  -0.84375,
  0.289062,
  -0.210938,
  0.890625,
  0.234375,
  -0.320312,
  0.953125,
  0.289062,
  -0.34375,
  -0.890625,
  0.234375,
  -0.320312,
  -0.953125,
  0.289062,
  -0.34375,
  -0.84375,
  0.171875,
  -0.320312,
  0.765625,
  0.09375,
  -0.320312,
  0.84375,
  0.171875,
  -0.320312,
  -0.765625,
  0.09375,
  -0.320312,
  -0.828125,
  0.078125,
  -0.320312,
  0.828125,
  0.078125,
  -0.320312,
  -0.851562,
  0.015625,
  -0.320312,
  0.8125,
  -0.015625,
  -0.320312,
  0.851562,
  0.015625,
  -0.320312,
  -0.8125,
  -0.015625,
  -0.320312,
  0.882812,
  -0.015625,
  -0.265625,
  -0.882812,
  -0.015625,
  -0.265625,
  1.03906,
  0.328125,
  -0.414062,
  -1.03906,
  0.328125,
  -0.414062,
  1.1875,
  0.34375,
  -0.484375,
  -1.1875,
  0.34375,
  -0.484375,
  1.25781,
  0.242187,
  -0.492188,
  -1.25781,
  0.242187,
  -0.492188,
  1.21094,
  0.0859375,
  -0.484375,
  1.1875,
  0.09375,
  -0.445312,
  -1.21094,
  0.0859375,
  -0.484375,
  1.04688,
  -1.84407e-08,
  -0.421875,
  -1.04688,
  -1.84407e-08,
  -0.421875,
  0.890625,
  0.109375,
  -0.328125,
  -0.890625,
  0.109375,
  -0.328125,
  -0.9375,
  0.0625,
  -0.335938,
  0.9375,
  0.0625,
  -0.335938,
  0.960938,
  0.171875,
  -0.351562,
  -0.960938,
  0.171875,
  -0.351562,
  -1,
  0.125,
  -0.367188,
  1.05469,
  0.1875,
  -0.382812,
  1.01562,
  0.234375,
  -0.375,
  -1.05469,
  0.1875,
  -0.382812,
  -1.01562,
  0.234375,
  -0.375,
  1.08594,
  0.273437,
  -0.390625,
  -1.08594,
  0.273437,
  -0.390625,
  -1.10938,
  0.210937,
  -0.390625,
  1.10938,
  0.210937,
  -0.390625,
  0.789062,
  -0.125,
  -0.328125,
  1.03906,
  -0.0859375,
  -0.492188,
  -0.789062,
  -0.125,
  -0.328125,
  -1.03906,
  -0.0859375,
  -0.492188,
  1.3125,
  0.0546875,
  -0.53125,
  -1.3125,
  0.0546875,
  -0.53125,
  1.36719,
  0.296875,
  -0.5,
  -1.36719,
  0.296875,
  -0.5,
  1.25,
  0.46875,
  -0.546875,
  -1.25,
  0.46875,
  -0.546875,
  1.02344,
  0.4375,
  -0.484375,
  -1.02344,
  0.4375,
  -0.484375,
  0.859375,
  0.382812,
  -0.382813,
  -0.859375,
  0.382812,
  -0.382813,
  -0.773438,
  0.265625,
  -0.4375,
  -0.164062,
  0.414063,
  0.773438,
  1,
  0.125,
  -0.367188];

console.log(model.length);
var mt = model.length / 48;
var n = 7, n1 = n + 1;
mtn = mt * 6 * n * n;
var b0 = new Array(n1), b1 = new Array(n1),
  b2 = new Array(n1), b3 = new Array(n1),
  d0 = new Array(n1), d1 = new Array(n1),
  d2 = new Array(n1), d3 = new Array(n1);
for (var i = 0; i <= n; i++) {
  var u = i / n, u1 = 1 - u, u12 = u1 * u1, u2 = u * u,
    db0 = 3 * u12, db3 = 3 * u2, t = 5 * u * u1;
  b0[i] = u1 * u12; b1[i] = db0 * u; b2[i] = db3 * u1; b3[i] = u * u2;
  d0[i] = -db0; d1[i] = db0 - t; d2[i] = t - db3; d3[i] = db3;
}

var pt = new Array(mt * 3 * n1 * n1), nt = new Array(mt * 3 * n1 * n1);
var p = new Array(48);
var km = 0, kt = 0;
var ind = [];
for (sp = 0; sp < mt; sp++) {
  var k = 0, scale = 20;
  for (var j = 0; j < 4; j++) for (var i = 0; i < 4; i++) {
    p[k++] = model[kt++] / scale; p[k++] = model[kt++] / scale - 3;
    p[k++] = model[kt++] / scale;
  }
  for (var j = 0; j < n1; j++) for (var i = 0; i < n1; i++) {
    var x1 = (
      (p[0] * b0[i] + p[3] * b1[i] + p[6] * b2[i] + p[9] * b3[i]) * d0[j] +
      (p[12] * b0[i] + p[15] * b1[i] + p[18] * b2[i] + p[21] * b3[i]) * d1[j] +
      (p[24] * b0[i] + p[27] * b1[i] + p[30] * b2[i] + p[33] * b3[i]) * d2[j] +
      (p[36] * b0[i] + p[39] * b1[i] + p[42] * b2[i] + p[45] * b3[i]) * d3[j]);
    var y1 = (
      (p[1] * b0[i] + p[4] * b1[i] + p[7] * b2[i] + p[10] * b3[i]) * d0[j] +
      (p[13] * b0[i] + p[16] * b1[i] + p[19] * b2[i] + p[22] * b3[i]) * d1[j] +
      (p[25] * b0[i] + p[28] * b1[i] + p[31] * b2[i] + p[34] * b3[i]) * d2[j] +
      (p[37] * b0[i] + p[40] * b1[i] + p[43] * b2[i] + p[46] * b3[i]) * d3[j]);
    var z1 = (
      (p[2] * b0[i] + p[5] * b1[i] + p[8] * b2[i] + p[11] * b3[i]) * d0[j] +
      (p[14] * b0[i] + p[17] * b1[i] + p[20] * b2[i] + p[23] * b3[i]) * d1[j] +
      (p[26] * b0[i] + p[29] * b1[i] + p[32] * b2[i] + p[35] * b3[i]) * d2[j] +
      (p[38] * b0[i] + p[41] * b1[i] + p[44] * b2[i] + p[47] * b3[i]) * d3[j]);
    var x2 = (
      (p[0] * d0[i] + p[3] * d1[i] + p[6] * d2[i] + p[9] * d3[i]) * b0[j] +
      (p[12] * d0[i] + p[15] * d1[i] + p[18] * d2[i] + p[21] * d3[i]) * b1[j] +
      (p[24] * d0[i] + p[27] * d1[i] + p[30] * d2[i] + p[33] * d3[i]) * b2[j] +
      (p[36] * d0[i] + p[39] * d1[i] + p[42] * d2[i] + p[45] * d3[i]) * b3[j]);
    var y2 = (
      (p[1] * d0[i] + p[4] * d1[i] + p[7] * d2[i] + p[10] * d3[i]) * b0[j] +
      (p[13] * d0[i] + p[16] * d1[i] + p[19] * d2[i] + p[22] * d3[i]) * b1[j] +
      (p[25] * d0[i] + p[28] * d1[i] + p[31] * d2[i] + p[34] * d3[i]) * b2[j] +
      (p[37] * d0[i] + p[40] * d1[i] + p[43] * d2[i] + p[46] * d3[i]) * b3[j]);
    var z2 = (
      (p[2] * d0[i] + p[5] * d1[i] + p[8] * d2[i] + p[11] * d3[i]) * b0[j] +
      (p[14] * d0[i] + p[17] * d1[i] + p[20] * d2[i] + p[23] * d3[i]) * b1[j] +
      (p[26] * d0[i] + p[29] * d1[i] + p[32] * d2[i] + p[35] * d3[i]) * b2[j] +
      (p[38] * d0[i] + p[41] * d1[i] + p[44] * d2[i] + p[47] * d3[i]) * b3[j]);
    var x3 = y1 * z2 - y2 * z1, y3 = x2 * z1 - x1 * z2, z3 = x1 * y2 - x2 * y1;
    var norm = Math.sqrt(x3 * x3 + y3 * y3 + z3 * z3);
    nt[km] = x3 / norm;
    pt[km++] = (
      (p[0] * b0[i] + p[3] * b1[i] + p[6] * b2[i] + p[9] * b3[i]) * b0[j] +
      (p[12] * b0[i] + p[15] * b1[i] + p[18] * b2[i] + p[21] * b3[i]) * b1[j] +
      (p[24] * b0[i] + p[27] * b1[i] + p[30] * b2[i] + p[33] * b3[i]) * b2[j] +
      (p[36] * b0[i] + p[39] * b1[i] + p[42] * b2[i] + p[45] * b3[i]) * b3[j]);
    nt[km] = y3 / norm;
    pt[km++] = (
      (p[1] * b0[i] + p[4] * b1[i] + p[7] * b2[i] + p[10] * b3[i]) * b0[j] +
      (p[13] * b0[i] + p[16] * b1[i] + p[19] * b2[i] + p[22] * b3[i]) * b1[j] +
      (p[25] * b0[i] + p[28] * b1[i] + p[31] * b2[i] + p[34] * b3[i]) * b2[j] +
      (p[37] * b0[i] + p[40] * b1[i] + p[43] * b2[i] + p[46] * b3[i]) * b3[j]);
    nt[km] = z3 / norm;
    pt[km++] = (
      (p[2] * b0[i] + p[5] * b1[i] + p[8] * b2[i] + p[11] * b3[i]) * b0[j] +
      (p[14] * b0[i] + p[17] * b1[i] + p[20] * b2[i] + p[23] * b3[i]) * b1[j] +
      (p[26] * b0[i] + p[29] * b1[i] + p[32] * b2[i] + p[35] * b3[i]) * b2[j] +
      (p[38] * b0[i] + p[41] * b1[i] + p[44] * b2[i] + p[47] * b3[i]) * b3[j]);
  }

  var sh = sp * n1 * n1;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      ind.push(i * n1 + j + sh); ind.push((i + 1) * n1 + j + 1 + sh); ind.push(i * n1 + j + 1 + sh);
      ind.push(i * n1 + j + sh); ind.push((i + 1) * n1 + j + sh); ind.push((i + 1) * n1 + j + 1 + sh);
    }
};

var colors = [];
for (var i = 0; i < model.length / 3; i++) {
  colors.push(0.4);
  colors.push(0.1);
  colors.push(0.1);
  colors.push(1.0);
}
for (var i = 0; i < nt.length; i++) {
  if (!nt[i]) nt[i] = 0.0;
}
// 创建一个可以写入的流，写入到文件 output.txt 中
var writerStream = fs.createWriteStream('output.txt');

// 使用 utf8 编码写入数据
writerStream.write(ind.toString(), 'UTF8');

// 标记文件末尾
writerStream.end();

// 处理流事件 --> data, end, and error
writerStream.on('finish', function () {
  console.log("写入完成。");
});

writerStream.on('error', function (err) {
  console.log(err.stack);
});

console.log("程序执行完毕");